package com.leo.model;

import com.leo.util.DateUtil;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/**
 * @ClassName: MyBeanFactoryPostProcessor
 * @Description: ${description}
 * @Author: leo825
 * @Date: 2020-02-24 22:08
 * @Version: 1.0
 */
public class MyBeanFactoryPostProcessor implements BeanFactoryPostProcessor {

    public MyBeanFactoryPostProcessor() {
        super();
        System.out.println(DateUtil.getTimeNow() + "调用BeanFactoryPostProcessor构造方法");
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
        System.out.println(DateUtil.getTimeNow() + "调用BeanFactoryPostProcessor的postProcessBeanFactor(),[" + configurableListableBeanFactory + "]");
    }
}
